package com.lmq.innerclasses;// innerclasses/DotNew.java
// (c)2021 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information.
// Creating an inner class directly using .new syntax

public class DotNew {
  public class Inner {}
  public static void main(String[] args) {
    DotNew dn = new DotNew();
    Inner dni = dn.new Inner();
  }
}
/**
 * To create an object of the inner class directly, you don;t follow the
 * same form and refer to the outer class name DotNew as you might expect.Instead, use
 * an object of the outer class to make an object of the inner class, as you see above.This also resolves
 * the name scoping issues for hte inner class, so you don't say (indeed,you cannot say)
 * dn.new DotNew.Inner().
 * here, you see .new applied to the Parcel example:
 *
 */